Class NewsGuardianProcessorActorTest

java.lang.Object
com.fsf.news.actor.processor.NewsGuardianProcessorActorTest

@ExtendWith({org.mockito.junit.jupiter.MockitoExtension.class,org.apache.pekko.actor.testkit.typed.javadsl.TestKitJUnit5Extension.class}) class NewsGuardianProcessorActorTest extends Object
Unit tests for the NewsGuardianProcessorActor class.
  • Field Details

    • testKit

      @JUnit5TestKit org.apache.pekko.actor.testkit.typed.javadsl.ActorTestKit testKit
    • wordStatsActorFactory

      @Mock com.fsf.news.actor.processor.factory.NewsWordStatsProcessorActorFactory wordStatsActorFactory
    • fleschMetricsActorFactory

      @Mock com.fsf.news.actor.processor.factory.NewsFleschMetricsProcessorActorFactory fleschMetricsActorFactory
    • sentimentActorFactory

      @Mock com.fsf.news.actor.processor.factory.NewsSentimentProcessorActorFactory sentimentActorFactory
    • sourcesActorFactory

      @Mock com.fsf.news.actor.processor.factory.NewsSourcesProcessorActorFactory sourcesActorFactory
  • Constructor Details

    • NewsGuardianProcessorActorTest

      NewsGuardianProcessorActorTest()
  • Method Details

    • testProcessorRequestMessageWordStats

      @Test void testProcessorRequestMessageWordStats()
      Tests that a WordStats request message is forwarded to a word stats actor.
    • testProcessorRequestMessageWordStatsSupervision

      @Test void testProcessorRequestMessageWordStatsSupervision()
      Tests that the word stats actor pool restarts on failure.
    • testProcessorRequestMessageWordStatsSupervisionRetryLimit

      @Test void testProcessorRequestMessageWordStatsSupervisionRetryLimit()
      Tests that supervision retries stop after the configured retry limit.
    • testProcessorRequestMessageFleschMetrics

      @Test void testProcessorRequestMessageFleschMetrics()
      Tests that a FleschMetrics request message is forwarded to a flesch metrics actor.
    • testProcessorRequestMessageFleschMetricsSupervision

      @Test void testProcessorRequestMessageFleschMetricsSupervision()
      Tests that the Flesch metrics actor pool restarts on failure.
    • testProcessorRequestMessageFleschMetricsSupervisionRetryLimit

      @Test void testProcessorRequestMessageFleschMetricsSupervisionRetryLimit()
      Tests that supervision retries stop after the configured retry limit.
    • testProcessorRequestMessageSentiment

      @Test void testProcessorRequestMessageSentiment()
      Tests that a Sentiment request message is forwarded to a sentiment actor.
    • testProcessorRequestMessageSentimentSupervision

      @Test void testProcessorRequestMessageSentimentSupervision()
      Tests that the Sentiment actor pool restarts on failure.
    • testProcessorRequestMessageSentimentSupervisionRetryLimit

      @Test void testProcessorRequestMessageSentimentSupervisionRetryLimit()
      Tests that supervision retries stop after the configured retry limit.
    • testProcessorRequestMessageNewsSources

      @Test void testProcessorRequestMessageNewsSources()
      Tests that a AddSource request message is forwarded to a sources actor.
    • testProcessorRequestMessageNewsSourcesSupervision

      @Test void testProcessorRequestMessageNewsSourcesSupervision()
      Tests that the sources actor pool restarts on failure.
    • testProcessorRequestMessageNewsSourcesSupervisionRetryLimit

      @Test void testProcessorRequestMessageNewsSourcesSupervisionRetryLimit()
      Tests that supervision retries stop after the configured retry limit.